package com.coconet.gas.vo.dw;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "leak_repair")
public class LeakRepair implements Serializable {
    @Id
    private Integer id;

    /**
     * 资产网址或ip
     */
    private String asset;

    /**
     * 添加时间
     */
    private Date time;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取资产网址或ip
     *
     * @return asset - 资产网址或ip
     */
    public String getAsset() {
        return asset;
    }

    /**
     * 设置资产网址或ip
     *
     * @param asset 资产网址或ip
     */
    public void setAsset(String asset) {
        this.asset = asset;
    }

    /**
     * 获取添加时间
     *
     * @return time - 添加时间
     */
    public Date getTime() {
        return time;
    }

    /**
     * 设置添加时间
     *
     * @param time 添加时间
     */
    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", asset=").append(asset);
        sb.append(", time=").append(time);
        sb.append("]");
        return sb.toString();
    }
}